/**
 * Created by huanggw on 2015/11/7.
 */

var User = require('../dao/user');
module.exports = function (app) {
    app.get('/regist', function(req, res, next) {
        res.render('regist');
    })

    app.post('/regist', function(req, res, next) {
        User.save(req.body, get)
        function get(result) {
            res.send(result);
        }
    })
}

